class CreateUsers < ActiveRecord::Migration
  def self.up
    transaction do
      create_table :users do |table|
        table.column :email, :string, :null => false
        table.column :firstname, :string, :null => false
        table.column :lastname, :string, :null => false
        table.column :password, :string, :null => false
        table.column :account_number, :string, :default => nil, :null => true
        table.column :created_at, :datetime
        table.column :updated_at, :datetime
      end
    end
  end
  
  def self.down
    drop_table :users
  end
end